package behavioral.interpret;

/**
 * @Description: 浮点数解释器
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class DoubleExpression implements IExpression {

    double number = 0;

    public DoubleExpression(String number) {
        this.number = Double.parseDouble(number);
    }

    public DoubleExpression(Double number) {
        this.number = number;
    }

    public double interpreter() {
        return this.number;
    }
}
